feat(pickers): default attach_mappings for all pickers#3201
feat(pickers): default attach_mappings for all pickers#3201evertonse wants to merge 1 commit intonvim-telescope:masterfrom
Conversation
|
attach_mappings SHOULD not be used like this! it would make more sense to consistently support user autocmds for all points where ppl want to inject custom functions OR implement a custom event system. depending on our needs. We have this on our roadmap but no deadline when this will be implemented |
If a default |
Description
Allows
attach_mappingsfunction to be defined intelescope.defaultsthat will be used as default for all pickersIf you define
attach_mappingson specific picker, that'll be used instead.Use case is that it was needed to perform some operations using
prompt_bufnras soon as the picker started.It was ideal to perform that for all pickers and just override when necessary, but saw no way of doing that.
Example:
Testing
Should see 'We are balling' when a picker is opened.